home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1999 January - Disc 2
/
Macworld (1999-01) (Disk 2).dmg
/
Serious Demos
/
Symbolic Composer 4.2
/
Environment
/
Projects
/
Examples
/
First Tutorial
/
Session 4
< prev
Wrap
Lisp/Scheme
|
1998-10-26
|
946b
|
43 lines
(initdef)
(defsym a '(b c a))
(defsym b '(f e))
(defsym c '(b a))
(defsym d '(a g))
(def-symbol
instr1 (gen-trans a 4)
instr2 (gen-trans d 4)
instr3 (gen-trans c 4)
instr4 (gen-trans b 4)
)
(def-length
default '1/16
)
(def-channel
instr1 1
instr2 2
instr3 3
instr4 4
)
(setq tonals
(activate-tonality (whole-tone c 5) (chromatic c 6)))
(setq tonals1
(activate-tonality (chromatic c 6) (whole-tone c 5)))
(midiport :printer)
(def-tempo 120)
(compile-song-p "ccl;output:" 1/8 "Session 4"
; BARS |-------|-------|-------|-------|
changes tonals " . . . . ."
changes2 tonals1 " . . . . . . . ."
instr1 changes "-- ----- --- --- ----- --"
instr2 changes2 " --- --- -- - --- --- --- --"
instr3 changes2 " ---- --- - - -- --- -- -"
instr4 changes " ----- - - - -- - - - - -"
)